import copy
a=[1,2,3,[4,5],6]
b=a
c=copy.copy(a)
d=copy.deepcopy(a)
b.append(10)
c[3].append(11)
d[3].append(12)
print(a)
print(b)
print(c)
print(d)
print(a)


alist=[2,4,5,6,7,8,9,10,11]
for var in alist:
    print(var)#默认按照索引取值,第一次var=2,remove(2) 列表变成[4,5,6,7,8,9,10,11]
    if var%2==0:#第二次var=5,[4,5,6,7,8,9,10,11] 第三次[4,5,7,8,9,10,11] 第四次 [4,5,7,9,10,11]
        alist.remove(var)
        print('删除',var)
print(alist)#[4, 5, 7,7,9,11]
0